package lab02.test37;

public class DemoStudent {
    public static void main(String[] args) {
        Undergraduate zhangSan = new Undergraduate();
        zhangSan.setName("张三");
        zhangSan.setAge(20);
        zhangSan.setEducation("本科生");
        System.out.println("姓名:" + zhangSan.getName() + " 年龄:" + zhangSan.getAge() + " 学历:" + zhangSan.getEducation() );
        zhangSan.getAverage(56,48,78);

        System.out.println();
        Graduate liSi = new Graduate();
        liSi.setName("李四");
        liSi.setAge(23);
        liSi.setEducation("研究生");
        System.out.println("姓名:" + liSi.getName() + " 年龄:" + liSi.getAge() + " 学历:" + liSi.getEducation() );
        liSi.getAverage(82,86,90);
    }
}
